#pragma once
#include "RBTree.h"

namespace klaus
{
	template<class K>
	class set
	{
	public:
		struct Select
		{
			const K& operator()(const K& key)
			{
				return key;
			}
		};
		typedef typename RBTree<K, K, Select>::iterator iterator;
		pair<iterator,bool> insert(const K& key)
		{
			return _t.insert(key);
		}
		iterator begin()
		{
			return _t.begin();
		}
		iterator end()
		{
			return _t.end();
		}
	private:
		RBTree<K, K,Select> _t;
	};
}
